package com.lovo.pis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lovo.pis.dto.PageBean;
import com.lovo.pis.dto.SellCarGoodsBean;
import com.lovo.pis.dto.StockGoodsBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SellCarGoodsMapper extends BaseMapper<SellCarGoodsBean> {

    void updateNumber(@Param("carId") int carId,@Param("id") int id,@Param("number") int number);

    IPage<SellCarGoodsBean> selectAllBuyCarGoods(@Param("page")Page page,@Param("carId")int carId);

    List<SellCarGoodsBean> selectAllSellCarGoods(int carId);
}
